<template>
  <view :style="{ paddingTop: statusBarHeight + 'px' }">
    <!-- 页面内容 -->
  </view>
</template>
<script setup>
import {ref} from "vue";

const systemInfo = ref(uni.getSystemInfoSync());
const statusBarHeight = ref(systemInfo.value.statusBarHeight || 0)
</script>
<style scoped lang="scss">

</style>